import '@/assets/scss/index.scss'
import { createApp } from 'vue'
import router from '@/router/index'
import i18n from '@/i18n/index'
import store from '@/store/index'
import App from './App.vue'
import 'element-plus/packages/theme-chalk/src/base.scss'
import { useElementPlus } from './plugins/elementPlus.js'
import SvgIcon from '@/components/SvgIcon/index.vue'

import 'virtual:svg-icons-register'
import '@/utils/permission'
import directive from './directive'
const app = createApp(App)
useElementPlus(app)
app
  .use(directive)
  .use(store)
  .use(router)
  .use(i18n)
  .component('svg-icon', SvgIcon)
  .mount('#app')